﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cache.WebApi
{

    public class SqlSugarDbContext
    {
        public SqlSugarClient DbContext;

        /// <summary>
        /// 
        /// </summary>
        public SqlSugarDbContext()
        {
            DbContext = new SqlSugarClient(new ConnectionConfig()
            {
                DbType                = SqlSugar.DbType.MySql,
                InitKeyType           = InitKeyType.Attribute,
                IsAutoCloseConnection = true,
                ConnectionString      = "server=localhost;database=ndc_test;uid=root;pwd=123456;charset='utf8';sslMode=None"
            });
        }


    }
}
